package cn.flying.cloud.oa.leave.service;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

import cn.flying.cloud.base.common.vo.PageRequest;
import cn.flying.cloud.base.common.vo.PageResponse;
import cn.flying.cloud.oa.leave.entity.OaLeaveApply;

/**
 * 请假流程申请表 服务类
 *
 * @author admin
 * @since 2024-12-26 20:48:41
 */
public interface OaLeaveApplyService extends IService<OaLeaveApply> {

    /**
     * 查询总数
     *
     * @param oaLeaveApply
     * @return
     */
    long countObj(OaLeaveApply oaLeaveApply);

    /**
     * 分页查询请假流程申请表数据
     *
     * @param request
     * @return
     */
    PageResponse<OaLeaveApply> getPageList(PageRequest<OaLeaveApply> request);

    /**
     * 列表查询请假流程申请表数据
     *
     * @param oaLeaveApply
     * @return
     */
    List<OaLeaveApply> getList(OaLeaveApply oaLeaveApply);

    /**
     * 查询请假流程申请表详情数据
     *
     * @param oaLeaveApply
     * @return
     */
    OaLeaveApply getOneObj(OaLeaveApply oaLeaveApply);

    /**
     * 根据Id查询请假流程申请表详情数据
     *
     * @param id
     * @return
     */
    OaLeaveApply getObjById(Serializable id);

    /**
     * 新增请假流程申请表数据
     *
     * @param oaLeaveApply
     * @return
     */
    boolean createObj(OaLeaveApply oaLeaveApply);

    /**
     * 更新请假流程申请表数据
     *
     * @param oaLeaveApply
     * @return
     */
    boolean updateObj(OaLeaveApply oaLeaveApply);

    /**
     * 删除请假流程申请表数据
     *
     * @param oaLeaveApply
     * @return
     */
    boolean deleteObj(OaLeaveApply oaLeaveApply);

    /**
     * 根据Id删除请假流程申请表数据
     *
     * @param id
     * @return
     */
    boolean deleteById(Serializable id);

}
